﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EnhancedWebControls;

namespace EwcControlTest
{
    public partial class EnhancedCheckBoxes : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            lblResults1.Text = null;
            lblResults1.Visible = false;
            string skin = "";
            if (((Site1)Master).ApplySkin)
                skin = "MySkin";
            EnhancedCheckBox1.CssClass = skin;
            EnhancedCheckBox2.CssClass = skin;
            EnhancedCheckBox3.CssClass = skin;
            EnhancedCheckBox4.CssClass = skin;
            EnhancedCheckBox5.CssClass = skin;
            EnhancedCheckBox6.CssClass = skin;
        }
        protected void CheckChangedHandler(object sender, EventArgs e)
        {
            lblResults1.Text = "Your checkbox is set to:" + ((EnhancedCheckBox)sender).Checked.ToString();
            lblResults1.Visible = true;
        }
    }
}
